/////////////////////////////////////////////////////////////////////////////
//
//  Fifteen Puzzle
//  Kolonitsky Developers Alliance (c) 2012
//  All rights received
//
/////////////////////////////////////////////////////////////////////////////

package controller
{

    import flash.display.Sprite;

    import model.GameProxy;

    import org.puremvc.as3.interfaces.INotification;
    import org.puremvc.as3.patterns.command.MacroCommand;
    import org.puremvc.as3.patterns.command.SimpleCommand;

    import view.Game;
    import view.GameMediator;

    public class StartUpCommand extends SimpleCommand
    {
        override public function execute(notification:INotification):void
        {
            super.execute(notification);
            var game:Game = notification.getBody() as Game;
            facade.registerProxy(new GameProxy());
            facade.registerMediator(new GameMediator(game as Sprite));
        }
    }
}
